/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UserInterface;

import java.awt.Color;
import java.awt.ComponentOrientation;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author subx
 */
public class SRCMain1 extends JFrame {

    private JLabel logo;
    private String title = "SRC - Sistema de Roteamento de Carteiros";
    final private String LOOKANDFEEL = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
    private InformationPanel panel;


    public SRCMain1() {
        try {
            //Modifica o Look and Feel da janela.
            UIManager.setLookAndFeel(LOOKANDFEEL);
            initComponents();
        } catch (ClassNotFoundException e) {
            System.err.println("Couldn't find class for look and feel: "
                    + LOOKANDFEEL);
            System.err.println("Using default look and feel.");
        } catch (UnsupportedLookAndFeelException e) {
            System.err.println("Can't use the specified look and feel ("
                    + LOOKANDFEEL + ") in this plataform.");
            System.err.println("Using default look and feel.");
        } catch (Exception e) {
            System.err.println("Couldn't get specified look and feel ("
                    + LOOKANDFEEL + ") for some reason.");
            System.err.println("Using default look and feel.");
            e.printStackTrace();
        }

    }

    public JLabel getLogo() {
        return logo;
    }

    public void setLogo(JLabel logo) {
        this.logo = logo;
    }

    /*
     * Inicializa todos os componentes do JFrame.
     */
    private void initComponents() {
        /*
         * Seta alguns parâmetros especiais do JFrame.
         */
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(910, 632);
        setResizable(false);
        this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);

        //Painel de informações
        panel = new InformationPanel();
        panel.setBackground(Color.red);
        panel.setAlignmentX(10);
        panel.setAlignmentY(10);
        this.add(panel);
    }
}
